package com.qf.mp2302.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qf.mp2302.entity.User;

import java.sql.SQLException;
import java.util.List;

public interface UserService extends IService<User> {

    /**
     * 根据 查询条件 查询用户信息
     * @param user
     * @return
     */
    public List<User> findUsers(User user);

    /**
     * 注册用户
     * @param user
     * @return
     */
    public User regist(User user) throws SQLException;

    /**
     * 演示事务失效
     * @param user
     * @return
     */
    public User transInvalid(User user) throws SQLException;

}
